﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.models.vo {
    import net.wooga.pets.constants.*;

    public class ShopItemVO {

        private var _type:String;
        private var _category:String;
        private var _destination:String;
        private var _cash:int;
        private var _coins:int;
        private var _giftable:Boolean;
        private var _numberOfItems:Array;
        private var _location:String;
        private var _isLocked:Boolean;
        private var _row:int;
        private var _position:int;
        private var _unique:Boolean;
        private var _background:Boolean;
        private var _charmingPoints:int;
        private var _sellFor:int;
        private var _minFriends:int;
        private var _minLevel:int;
        private var _newUntil:String;
        private var _availableFrom:String;
        private var _availableUntil:String;
        private var _xp:String;
        private var _available:Boolean;// = true
        private var _isOneShotItem:Boolean;
        private var _assetURL:String;

        public static const DESTINATION_GARDEN:String = "garden";
        public static const DESTINATION_ROOM:String = "room";
        public static const DESTINATION_ROOF:String = "roof";
        public static const DESTINATION_FACADE:String = "facade";
        public static const DESTINATION_CEILING:String = "ceiling";
        public static const DESTINATION_WALL:String = "wall";
        public static const DESTINATION_FLOOR:String = "floor";
        public static const DESTINATION_ELEVATOR_ROOF:String = "elevator_roof";
        public static const DESTINATION_ELEVATOR_FACADE:String = "elevator_facade";
        public static const DESTINATION_ELEVATOR_WALL:String = "elevator_wall";
        public static const CATEGORY_OBJECTS:String = "objects";
        public static const CATEGORY_DESIGNS:String = "designs";
        public static const CATEGORY_FLOORS:String = "floors";
        public static const CATEGORY_WALLS:String = "walls";
        public static const CATEGORY_ROOMS:String = "rooms";
        public static const LOCATION_INSIDE:String = "location_inside";
        public static const LOCATION_OUTSIDE:String = "location_outside";
        public static const LOCATION_INSIDE_AND_OUTSIDE:String = "location_inside_and_outside";

        public function ShopItemVO(){
            this._numberOfItems = [];
            super();
        }
        public function get type():String{
            return (this._type);
        }
        public function get category():String{
            return (this._category);
        }
        public function get destination():String{
            return (this._destination);
        }
        public function set type(_arg1:String):void{
            this._type = _arg1;
        }
        public function set destination(_arg1:String):void{
            this._destination = _arg1;
        }
        public function set category(_arg1:String):void{
            this._category = _arg1;
        }
        public function get cash():int{
            return (this._cash);
        }
        public function set cash(_arg1:int):void{
            this._cash = _arg1;
        }
        public function get coins():int{
            return (this._coins);
        }
        public function set coins(_arg1:int):void{
            this._coins = _arg1;
        }
        public function isFree():Boolean{
            return ((((this._coins == 0)) && ((this._cash == 0))));
        }
        public function get giftable():Boolean{
            return (this._giftable);
        }
        public function set giftable(_arg1:Boolean):void{
            this._giftable = _arg1;
        }
        public function get numberOfItems():Array{
            return (this._numberOfItems);
        }
        public function set numberOfItems(_arg1:Array):void{
            this._numberOfItems = _arg1;
        }
        public function get count():int{
            return (((this._numberOfItems.length) || (0)));
        }
        public function get location():String{
            return (this._location);
        }
        public function set location(_arg1:String):void{
            this._location = _arg1;
        }
        public function getNextID():String{
            if (this.count > 0){
                return (this._numberOfItems.pop());
            };
            return (null);
        }
        public function isCurrencyCash():Boolean{
            return ((this._cash > 0));
        }
        public function get isLocked():Boolean{
            return (this._isLocked);
        }
        public function set isLocked(_arg1:Boolean):void{
            this._isLocked = _arg1;
        }
        public function get row():int{
            return (this._row);
        }
        public function set row(_arg1:int):void{
            this._row = _arg1;
        }
        public function typeIsKiosk():Boolean{
            return ((this._type == GameConstants.TYPE_KIOSK));
        }
        public function typeIsKindergarten():Boolean{
            return ((this._type == GameConstants.TYPE_KINDERGARTEN));
        }
        public function set position(_arg1:int):void{
            this._position = _arg1;
        }
        public function get position():int{
            return (this._position);
        }
        public function get unique():Boolean{
            return (this._unique);
        }
        public function set unique(_arg1:Boolean):void{
            this._unique = _arg1;
        }
        public function get background():Boolean{
            return (this._background);
        }
        public function set background(_arg1:Boolean):void{
            this._background = _arg1;
        }
        public function get charmingPoints():int{
            return (this._charmingPoints);
        }
        public function set charmingPoints(_arg1:int):void{
            this._charmingPoints = _arg1;
        }
        public function get sellFor():int{
            return (this._sellFor);
        }
        public function set sellFor(_arg1:int):void{
            this._sellFor = _arg1;
        }
        public function get minFriends():int{
            return (this._minFriends);
        }
        public function set minFriends(_arg1:int):void{
            this._minFriends = _arg1;
        }
        public function get minLevel():int{
            return (this._minLevel);
        }
        public function set minLevel(_arg1:int):void{
            this._minLevel = _arg1;
        }
        public function get newUntil():String{
            return (this._newUntil);
        }
        public function set newUntil(_arg1:String):void{
            this._newUntil = _arg1;
        }
        public function get availableFrom():String{
            return (this._availableFrom);
        }
        public function set availableFrom(_arg1:String):void{
            this._availableFrom = _arg1;
        }
        public function get availableUntil():String{
            return (this._availableUntil);
        }
        public function set availableUntil(_arg1:String):void{
            this._availableUntil = _arg1;
        }
        public function get xp():String{
            return (this._xp);
        }
        public function set xp(_arg1:String):void{
            this._xp = _arg1;
        }
        public function isRoom():Boolean{
            return ((this._category == CATEGORY_ROOMS));
        }
        public function get available():Boolean{
            return (this._available);
        }
        public function set available(_arg1:Boolean):void{
            this._available = _arg1;
        }
        public function set isOneShotItem(_arg1:Boolean):void{
            this._isOneShotItem = _arg1;
        }
        public function get isOneShotItem():Boolean{
            return (this._isOneShotItem);
        }
        public function set assetURL(_arg1:String):void{
            this._assetURL = _arg1;
        }
        public function get assetURL():String{
            return (this._assetURL);
        }

    }
}//package net.wooga.pets.models.vo 
